﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data;

using DataAnalyseTool.Repository;

namespace DataAnalyseTool.BusinessTier.Bll
{
  public class QQRelationBLL
  {
    QQRelationDal qqrelation = new QQRelationDal();
    public int AddQQRelation(Model.QQRelation relation)
    {
      return qqrelation.AddQQRelation(relation);
    }
    public int DeleteQQRelation(string relationId)
    {
      return qqrelation.DeleteQQRelation(relationId);
    }

    public System.Data.DataTable GetAllRelations()
    {
      return qqrelation.GetAllRelations();
    }

    public int UpdateQQRelation(Model.QQRelation relation)
    {
      return qqrelation.UpdateQQRelation(relation);
    }

    public int GetTotal()
    {
      return qqrelation.GetTotal();
    }
    public DataSet getDataByPage(int currentPage, int pageSize)
    {
      return qqrelation.getDataByPage(currentPage, pageSize);
    }
    public DataTable IsSameQQ(string mainQQ, string QQ)
    {
      return qqrelation.isSameQQ(mainQQ, QQ);
    }
    public DataTable getSameQQ(string qq)
    {
      return qqrelation.getSameQQ(qq);
    }


  }
}